#include <iostream>
using namespace std;
int main()
{
    int vector[10];
    int i;
    int j;
    int aux;
    j=0;
    while(j<10)
    {
        cin>>vector[j];
        j++;
    }
    j=9;
    i=0;
    while(i<5)
    {
        aux=vector[j];
        vector[j]=vector[i];
        vector[i]=aux;

        j--;
        i++;
    }
    int z;
    z=0;
    while(z<10)
    {
        cout<<vector[z]<<endl;
        z++;
    }
}
